<template>
  <div class="consult_class">
    <Header />
    <div class="login_form">
      <div class="title">会员登录</div>
      <div class="title_class">请选择登录类型</div>
      <div class="consult_class">
        <template>
          <div class="consult_box">
            <div
              class="consult_class_name"
              v-for="(item, index) in list"
              :key="index"
              @click="trun(index)"
            >
              {{ item.title }}
            </div>
          </div>
        </template>
      </div>
    </div>
     
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: [{ title: "个人登录" }, { title: "企业登录" }],
    };
  },
  methods: {
    trun(index) {
      if (index == 0) {
        this.$router.push("/login?id=23");
      } else {
        this.$router.push("/login?id=24");
      }
    },
  },
};
</script>

<style lang="less" scoped>
.login_form {
  box-sizing: border-box;
  height: 674px;
  width: 100%;
  margin-top: 6px;
  background: url("../assets/image/Component 149.png");
  background-size: 100% 100%;

  .title {
    height: 27px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    font-size: 18px;
    line-height: 27px;
    color: #ffffff;
    padding-top: 97px;
  }
  .title_class {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    line-height: 27px;
    color: #ffffff;
    padding-top: 25px;
  }
  .consult_box {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .consult_class {
    width: 100%;
    box-sizing: border-box;
    margin-top: 45px;
    display: flex;
    align-content: center;
    justify-self: start;
    flex-wrap: wrap;

    .consult_class_name {
      width: 95px;
      height: 36px;
      text-align: center;
      border: 1px solid #fff;
      line-height: 36px;
      font-size: 14px;
      margin: 0 8px;
      color: #fff;
    }
    .active {
      width: 34%;
      margin: 0 23px 19px;
    }
  }
}
</style>